package com.lu.api.user;

import com.lu.model.admin.dto.AuthDto;
import com.lu.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//用户feign接口
@FeignClient("news-user")
public interface IUserClient {

    /**
     * 待审核用户列表查询
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/list")
    ResponseResult listExamine(@RequestBody AuthDto dto);


    /**
     * 审核不通过
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/authFail")
    ResponseResult failExamine(@RequestBody AuthDto dto);


    /**
     * 审核通过
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/authPass")
    ResponseResult successExamine(@RequestBody AuthDto dto);
}
